Availability |
3.0 |
Description |
Gets the position of a specific node in the DOM tree, expressed as byte offsets into the document's HTML source. Valid for any document on a local drive. |
Arguments |
node |
|
The argument must be a tag, comment, or range of text that is a node in the tree returned by dreamweaver.getDocumentDOM() . |
Returns |
An array containing two integers. The first integer is the byte offset of the beginning of the tag, text, or comment; the second integer is the byte offset of the end of the node. |
Enabler |
None. |
Example |
The following code selects the first image object in the current document: |
 |
|